<!--
*************************************************************************
* The contents of this file are subject to the Openbravo  Public  License
* Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
* Version 1.1  with a permitted attribution clause; you may not  use this
* file except in compliance with the License. You  may  obtain  a copy of
* the License at http://www.openbravo.com/legal/license.html 
* Software distributed under the License  is  distributed  on  an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific  language  governing  rights  and  limitations
* under the License. 
* The Original Code is Openbravo ERP. 
* The Initial Developer of the Original Code is Openbravo SLU 
* All portions are Copyright (C) 2011-2012 Openbravo SLU 
* All Rights Reserved. 
* Contributor(s):  ______________________________________.
************************************************************************
-->
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Select Credit Payments</title>
    <link rel="shortcut icon" href="../../../../../web/images/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Openbravo_ERP_250.css" id="paramCSS"></link>
    <script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
    <script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
    <script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
    <script language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></script>
    <script language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></script>
    <script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
    <script language="JavaScript" src="../utility/DynamicJS.js" type="text/javascript"></script>
    <script language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></script>
    <script language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></script>
    <script language="JavaScript" src="../../../../../web/js/default/DateTextBox.js" type="text/javascript"></script>
    <script language="JavaScript" type="text/javascript" id="paramLanguage">defaultLang = "en_US";</script>
    <script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
    <script language="JavaScript" src="../../../../../web/js/appStatus.js" type="text/javascript"></script>
    <script language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></script>   
    <script language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></script>
    <script language="JavaScript" src="../../../../../web/org.openbravo.advpaymentmngt/FIN_Utilities.js" type="text/javascript"></script>
    <script type="text/javascript">
    //  window.onunload = reloadOpener; // reloads opener on closing
      dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
    </script>
    <script language="JavaScript" type="text/javascript" id="paramDirectory">
      var baseDirectory="../../../../../web/";
    </script>
    <script language="JavaScript" type="text/javascript" id="paramArray">
      var arrDocAction = null;
    </script>
    <script language="JavaScript" type="text/javascript">
      function submitThisPage(strCommand) {
        if (validate()){
          setProcessingMode('popup', true);
          submitCommandForm(strCommand, false, null, null, '_self');
        }
        return true;
      }
    </script>

    <script language="JavaScript" type="text/javascript">
    function onLoadDo(){
        setProcessingMode('popup', false);
        this.windowTables = new Array(
          new windowTableId('client', 'buttonOK')
        );
        setWindowTableParentElement();
        enableShortcuts('popup');
        setBrowserAutoComplete(false);

        loadGridList();
        reloadOpener();
        initFIN_Utilities(document.frmMain);
        setWindowElementFocus('firstElement');
        
        // Refresh the invoice header after completing it
        var contextView = getFrame('LayoutMDI').OB.ActionButton.executingProcess.contextView;
        var currentView = getFrame('LayoutMDI').OB.ActionButton.executingProcess.view;
      // Refresh context view
        contextView.getTabMessage();
        currentView.toolBar.refreshCustomButtons();
      // Refresh in order to show possible new records
        currentView.refresh(null, false, true);
    }

    function onResizeDo(){
    }
    
    function validate(action, form, value) {
      var frm=document.frmMain;
      if (frm.inpPaymentDate.value==null || frm.inpPaymentDate.value=="" || !isValidDate(frm.inpPaymentDate.value, frm.inpPaymentDate.getAttribute("displayformat"))) {
        setWindowElementFocus(frm.inpPaymentDate);
        showJSMessage(7);
        return false;
      }
      
      var expectedAmt = frm.inpExpectedPayment.value || 0;
      var invoiceAmt = frm.inpInvoiceGrossAmt.value;      
      if ( compare(expectedAmt, '>', invoiceAmt) ) {
        setWindowElementFocus(frm.inpExpectedPayment);
        showJSMessage('APRM_JSMOREAMOUTALLOCATED');
        return false;
      }
      
      for (i=0; i < frm.elements.length; i++) {
        var tag = frm.elements[i].name.slice(0, "inpPaymentAmount".length);
        if (tag === "inpPaymentAmount") {
          if (!validatePaymentAmt(frm.elements[i])) {
            setWindowElementFocus(frm.elements[i]);
            showJSMessage('APRM_JSMOREAMOUTALLOCATED');
            return false;
          }
        }
      }
      setProcessingMode('popup', true);
      return true;
   }
   function validatePaymentAmt(element) {
     var id = element.name.slice("inpPaymentAmount".length);
     var outStandingAmount = frm.elements["inpRecordAmt" + id].value || 0;
     var amount = element.value || 0;
     var invalidSpan = document.getElementById('paraminvalidSpan'+id);
     if (invalidSpan) {
       var valid = isBetweenZeroAndMaxValue(amount, outStandingAmount);
       document.getElementById('paraminvalidSpan'+id).style.display = !valid ? 'block' : 'none';
       if (!valid) {
         return false;
       }
     }
     return true;
   }
   function validateDate(element){
     isValidDate(element.value, element.getAttribute("displayformat"))
   }
   
    </script>
<script language="JavaScript" type="text/javascript">
function loadGridList() {
  try {
    var url = "../org.openbravo.advpaymentmngt.ad_actionbutton/ProcessInvoice.html";
    var paramXMLReq = null;
    return submitXmlHttpRequest(callBackGrid, document.frmMain, "GRIDLIST", url, false, null, paramXMLReq);
  } catch (e) {
    alert(e);
  }
}

function callBackGrid(paramXMLParticular, XMLHttpRequestObj) {
  var strText = "";
  if (getReadyStateHandler(XMLHttpRequestObj)) {
    try {
      if (XMLHttpRequestObj.responseText) {
        strText = XMLHttpRequestObj.responseText;
        var aux = strText.substring(29, strText.length-8);
        var tableBody = document.getElementById('sectionGrid');
        var browserName = getBrowserInfo('name');
        if (browserName.toUpperCase().indexOf('INTERNET EXPLORER') != -1) {
          var temp = document.createElement("span");
          temp.id = 'temp';
          temp.style.display = 'none';
          var newRows = '<table><tbody id=\"sectionGrid\">'+ aux;
          temp.innerHTML = newRows;
          tableBody.parentNode.replaceChild(temp.firstChild.firstChild, tableBody);
          temp.parentNode.removeChild(temp);
        }
        tableBody.innerHTML = aux;
        
        reloadOpener();
        updateExpectedAmt();
      } else {
        document.getElementById('sectionGrid').innerHTML = '';
      }
    } catch (e) {
    }
  }
  return true;
}
</script>
<script type="text/javascript">
function paymentAmountOnChange(element){
  validatePaymentAmt(element);
  updateExpectedAmt();
  numberInputEvent('onchange', element);
}
function updateExpectedAmt() {
  frm.inpExpectedPayment.value = 0;
  var i;
  for (i=0; i < frm.elements.length; i++) {
    var tag = frm.elements[i].name.slice(0, "inpPaymentAmount".length);
    if (tag === "inpPaymentAmount") {
      frm.inpExpectedPayment.value = add(frm.inpExpectedPayment.value, frm.elements[i].value || 0);
      if (!frm.elements[i].value) {
        updateReadOnly(frm.elements[i].name.slice("inpPaymentAmount".length), false);
      }
    }
  }
  numberInputEvent('onchange', frm.elements["inpExpectedPayment"]);
}

function updateReadOnly(key, mark) {
  if (mark === null) {
    mark = false;
  }
  frm.elements["inpPaymentAmount" + key].disabled = !mark;

  if (mark) {
    frm.elements["inpPaymentAmount" + key].className = frm.elements["inpPaymentAmount" + key].className.replace(' readonly', '');
  } else {
    var classText = frm.elements["inpPaymentAmount" + key].className;
    if (classText.search('readonly') === -1) {
      frm.elements["inpPaymentAmount" + key].className = classText.concat(" readonly");
    }
    frm.elements["inpPaymentAmount" + key].value = '';
    invalidSpan = document.getElementById('paraminvalidSpan'+key);
    if (invalidSpan) {
      document.getElementById('paraminvalidSpan'+key).style.display = 'none';
    }
  }

  return true;
}

function updateData(key, mark) {
  if (mark==null) mark=false;
  if (mark) {
    distributeAmt(key);
  }
  updateReadOnly(key, mark);
  updateExpectedAmt();
  return true;
}

function distributeAmt(key){
  var invoiceAmount = frm.inpInvoiceGrossAmt.value || 0;
  var expectedAmount = frm.inpExpectedPayment.value || 0;
  var outStandingAmount = frm.elements["inpRecordAmt" + key].value || 0;
  
  var pendingToPay = subtract(invoiceAmount, expectedAmount);
  if (compare(pendingToPay, '>', 0)) {
    if (compare(outStandingAmount, '>=', pendingToPay)) {
      frm.elements["inpPaymentAmount" + key].value = pendingToPay;
    } else {
      frm.elements["inpPaymentAmount" + key].value = outStandingAmount;
    }
  }
  numberInputEvent('onchange', frm.elements["inpPaymentAmount" + key]);
}
</script>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
  <form id="form" method="post" action="ProcessInvoice.html" name="frmMain">
    <input type="hidden" name="Command">
    <input type="hidden" name="IsPopUpCall" value="1"></input>
    <input type="hidden" name="inpKey" value="" id="key"></input>
    <input type="hidden" name="inpwindowId" value="" id="window"></input>
    <input type="hidden" name="inpTabId" value="" id="tab"></input>
    <input type="hidden" name="inpadOrgId" value="" id="adOrgId"></input>
    <!-- Dummy value for FIN_Utilities.initFIN_Utilities() -->
    <input type="hidden" name="isReceipt" value="Y" id="fieldReceipt"/>
    
    <div class="Popup_ContentPane_CircleLogo">
      <div class="Popup_WindowLogo">
	<img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_process" src="../../../../../web/images/blank.gif" border=0/></img>
      </div>
    </div>
    <table cellspacing="0" cellpadding="0" width="100%" id="table_header">
      <tr>
	<td>
          <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_NavBar">
            <tr class="Popup_NavBar_bg"><td></td>
              <td class="Popup_NavBar_separator_cell"></td>
              <td class="Popup_NavBar_bg_logo_left"></td>
              <td class="Popup_NavBar_bg_logo" width="1" onclick="openNewBrowser('http://www.openbravo.com', 'Openbravo');return false;"><img src="../../../../../web/images/blank.gif" alt="Openbravo" title="Openbravo" border="0" id="openbravoLogo" class="Popup_NavBar_logo" /></td>
              <td class="Popup_NavBar_bg_logo_right"></td>
              <td class="Popup_NavBar_Popup_title_cell"><span name="lbl" id="lblPopupTitle">Use Credit Payment</span></td>
              <td class="Popup_NavBar_separator_cell"></td>
            </tr>
          </table>
	</td>
      </tr>
      <tr>
	<td>
          <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
            <tr>
              <td class="Popup_SeparatorBar_bg"></td>
            </tr>
          </table>
	</td>
      </tr>
    </table>

    <table cellspacing="0" cellpadding="0" width="100%">
      <tr>
	<td>
          <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client_messagebox">

            <!-- MessageBox -->
            <table cellpadding="0" cellspacing="0" id="messageBoxID" class="MessageBoxyy">
              <tbody>
		<tr class="MessageBox_TopMargin">
		  <td class="MessageBox_LeftMargin"></td>
		  <td></td>
		  <td class="MessageBox_RightMargin"></td>
		</tr>
		<tr>
		  <td class="MessageBox_LeftMargin"></td>
		  <td>

                    <table cellpadding="0" cellspacing="0" class="MessageBox_Container">
                      <tbody>
			<tr>
			  <td class="MessageBox_LeftTrans">
			    <table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
                              <tbody>
				<tr>
				  <td class="MessageBox_TopLeft"></td>
				</tr>
				<tr>
				  <td class="MessageBox_Left"></td>
				</tr>
                              </tbody>
			    </table>
			  </td>
			  <td class="MessageBox_bg">

			    <table class="MessageBox_Top">
			      <tbody>
				<tr>
				  <td>
				    <span>
				      <table cellpadding="0" cellspacing="0" class="MessageBox_Body_ContentCell">
					<tbody>
					  <tr>
					    <td class="MessageBox_Icon_ContentCell">
					      <div class="MessageBox_Icon"></div>
					    </td>
					    <td style="vertical-align: top;" id="messageBoxIDContent">
					      <span>
						<div class="MessageBox_TextTitle" id="messageBoxIDTitle">
						  xxInfo: AccessTableWithNoView
						</div>
						<div class="MessageBox_TextDescription" id="messageBoxIDMessage">
						  xxThe current information is empty.
						</div>
						<div class="MessageBox_TextSeparator"></div>
					      </span>
					    </td>
					  </tr>
					</tbody>
				      </table>
				    </span>
				  </td>
				</tr>
                              </tbody>
			    </table>

			  </td>
			  <td class="MessageBox_RightTrans">
			    <table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
                              <tbody>
				<tr>
				  <td class="MessageBox_TopRight"></td>
				</tr>
				<tr>
				  <td class="MessageBox_Right"></td>
				</tr>
                              </tbody>
			    </table>
			  </td>
			</tr>
			<tr>
			  <td rowspan="2" class="MessageBox_BottomLeft">
			  </td>
			  <td class="MessageBox_BottomTrans MessageBox_bg">
			  </td>
			  <td rowspan="2" class="MessageBox_BottomRight">
			  </td>
			</tr>
			<tr>
			  <td class="MessageBox_Bottom">
			  </td>
			</tr>
                      </tbody>
                    </table>

		  </td>
		  <td class="MessageBox_RightMargin"></td>
		</tr>
		<tr class="MessageBox_BottomMargin">
		  <td class="MessageBox_LeftMargin"></td>
		  <td></td>
                  <td class="MessageBox_RightMargin"></td>
		</tr>
              </tbody>
            </table>
            <!-- MessageBox END -->
          </div>
	</td>
      </tr>
    </table>
    
    <!-- Read only info -->
    <table cellspacing="0" cellpadding="0" width="100%">
      <tr>		
	<td></td>
	<td></td>
      </tr>
      <tr>
        <td class="TableEdition_OneCell_width"></td>
        <td class="TableEdition_OneCell_width"></td>
        <td class="TableEdition_OneCell_width"></td>
        <td class="TableEdition_OneCell_width"></td>
        <td class="TableEdition_OneCell_width"></td>
      </tr>
      <tr>
        <td class="TitleCell"><span name="lbl" id="lblGrandTotalAmt" class="LabelText">Total Gross Amount</span></td>
        <td class="TextBox_ContentCell"><input class="readonly dojoValidateValid TextBox_OneCells_width number" type="text" name="inpInvoiceGrossAmt" value="" id="paramInvoiceGrossAmt" outputformat="euroEdition"></input></td>
        <td class="TitleCell"><span class="LabelText" name="lbl" id="lblPendingAmount">Credit to be used</span></td>
        <td class="TextBox_ContentCell"><input class="readonly dojoValidateValid TextBox_OneCell_width number" type="text" name="inpExpectedPayment" value="" id="paramPendingAmt" outputformat="euroEdition"></input></td>      
        <td class="TitleCell"></td>
      </tr>
      <tr>
              <td class="TitleCell"><span name="lbl" id="lblPaymentDate" class="LabelText">Payment Date</span></td>
              <td class="TextBox_btn_ContentCell">
                <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
                  <tr>
                    <td class="TextBox_ContentCell">
                      <table style="border: 0px none; border-collapse: collapse;">
                        <tr><td style="padding-top: 0px;">
                          <input type="text" id="paramPaymentDate" name="inpPaymentDate" onchange="validateDateTextBox(this.id); validateDate(this);logChanges(this);return true;" onblur="expandDateYear(this.id);" oncontextmenu="changeToEditingMode('oncontextmenu');" onpaste="changeToEditingMode('onpaste');" oncut="changeToEditingMode('oncut');" onkeypress="changeToEditingMode('onkeypress');" onkeydown="changeToEditingMode('onkeydown');" onkeyup="autoCompleteDate(this);" maxlength="10" value="" required="true" class="dojoValidateValid required TextBox_btn_OneCell_width" displayFormat="xx" saveFormat="yy">
                        </td></tr>
                      </table>
                      <span id="paramPaymentDateinvalidSpan" style="display: none;" class="TextBox_MsgContainer_span">
                        <table class="TextBox_MsgContainer_table">
                          <tbody><tr class="TextBox_MsgContainer_tr"><td class="TextBox_MsgContainer_td"><div class="TextBox_MsgContainer_div"></div></td><td></td></tr>
                          <tr><td class="invalid" colspan="2"><div name="invalidText" id="paramPaymentDateinvalidSpanText" class="TextBox_MsgContainer_div2">* The value entered is not valid.</div></td></tr>
                        </tbody></table>
                      </span>
                      <span id="paramPaymentDatemissingSpan" style="display: none;" class="TextBox_MsgContainer_span">
                        <table class="TextBox_MsgContainer_table">
                          <tbody><tr class="TextBox_MsgContainer_tr">
                            <td class="TextBox_MsgContainer_td"><div class="TextBox_MsgContainer_div"></div></td><td></td>
                          </tr>
                          <tr>
                            <td class="missing" colspan="2"><div name="missingText" id="paramPaymentDatemissingSpanText" class="TextBox_MsgContainer_div2">* This value is required.</div></td>
                          </tr>
                          </tbody></table>
                      </span>
                    </td>
                    <td class="FieldButton_ContentCell">
                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Calendar'; return true;" onblur="window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;" onclick="showCalendar('frmMain.inpPaymentDate', document.frmMain.inpPaymentDate.value, false);return false;">
                        <table class="FieldButton"  onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
                          <tr>
                            <td class="FieldButton_bg">
                              <img alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Calendar" src="../../../../../web/images/blank.gif" border="0"></img>
                            </td>
                          </tr>
                        </table>
                      </a>
                    </td>
                  </tr>
                </table>
              </td>
              <td class="TitleCell"></td>
              <td class="TitleCell"></td>
              <td class="TitleCell"></td>
         </tr>
    </table>

    <!-- Grid and Buttons -->
    <table cellspacing="0" cellpadding="0" width="100%">
      <!-- Grid -->
      <tr>
        <td>
          <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client_middle">
            <table width="100%" cellspacing="0" cellpadding="0" class="Popup_Client_TablePopup">
              <!-- Grid -->
              <tr>	
		<td>
		  <table cellspacing="0" cellpadding="0" width="100%" class="DataGrid_Header_Table DataGrid_Body_Table" style="table-layout: auto;">
                    <thead>
                      <tr class="DataGrid_Body_Row">
			<th class="DataGrid_Header_LineNoCell DataGrid_Body_Cell_CheckBox" width="25"> 
                      <!--  <input type="checkbox" name="inpAllLines" onclick="markAll(document.frmMain.inpCreditPaymentId, this.checked);updateAll(true);return true;"/> -->    
			</th>
			<th class="DataGrid_Header_Cell" width="50">Credit Payment No</th>
			<th class="DataGrid_Header_Cell" width="400">Description</th>
			<th class="DataGrid_Header_Cell" width="70">Payment Date</th>
			<th class="DataGrid_Header_Cell" width="70">Outstanding Amount</th>
			<th class="DataGrid_Header_Cell" width="70">Amount</th>
                      </tr>
                    </thead>
                    <tbody id="sectionGrid">
                    </tbody>
		  </table>
		</td>
              </tr>
            </table>
	  </div>
	</td>
      </tr>
      
      <!-- Buttons -->
      <tr>
	<td>
          <div class="Popup_ContentPane_Client" style="overflow: auto; padding-bottom: 5px;" id="client_bottom">
            <table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">

              <tr>
		<td class="TableEdition_OneCell_width"></td>
		<td class="TableEdition_OneCell_width"></td>
		<td class="TableEdition_OneCell_width"></td>
		<td class="TableEdition_OneCell_width"></td>
		<td class="TableEdition_OneCell_width"></td>
		<td class="TableEdition_OneCell_width"></td>
              </tr>
              <tr>
		<td></td>
		<td></td>
		<td class="Button_RightAlign_ContentCell">
                  <div>
                    <button type="button" 
			    id="buttonProcess"
			    class="ButtonLink" 
			    onclick="submitThisPage('USECREDITPAYMENTS');return false;"
			    onfocus="buttonEvent('onfocus', this); window.status='Create'; return true;"
			    onblur="buttonEvent('onblur', this);"
			    onkeyup="buttonEvent('onkeyup', this);"
			    onkeydown="buttonEvent('onkeydown', this);"
			    onkeypress="buttonEvent('onkeypress', this);"
			    onmouseup="buttonEvent('onmouseup', this);"
			    onmousedown="buttonEvent('onmousedown', this);"
			    onmouseover="buttonEvent('onmouseover', this); window.status='Create'; return true;"
			    onmouseout="buttonEvent('onmouseout', this);">
                      <table class="Button">
			<tr>
                          <td class="Button_left"><img class="Button_Icon Button_Icon_ok" alt="Process" title="Process" src="../../../../../web/images/blank.gif" border="0" /></td>
                          <td class="Button_text" width="150px">Use Credit</td>
                          <td class="Button_right"></td>
			</tr>
                      </table>
                    </button>
                  </div>
		</td>
		<td class="Button_LeftAlign_ContentCell">
                  <div>
                    <button type="button" 
			    id="buttonCancel" 
			    class="ButtonLink" 
			    onclick="submitThisPage('CANCEL_USECREDITPAYMENTS');return false;"
			    onfocus="buttonEvent('onfocus', this); window.status='Cancel'; return true;"
			    onblur="buttonEvent('onblur', this);"
			    onkeyup="buttonEvent('onkeyup', this);"
			    onkeydown="buttonEvent('onkeydown', this);"
			    onkeypress="buttonEvent('onkeypress', this);"
			    onmouseup="buttonEvent('onmouseup', this);"
			    onmousedown="buttonEvent('onmousedown', this);"
			    onmouseover="buttonEvent('onmouseover', this); window.status='Cancel'; return true;"
			    onmouseout="buttonEvent('onmouseout', this);">
                      <table class="Button">
			<tr>
                          <td class="Button_left"><img class="Button_Icon Button_Icon_cancel" alt="Cancel" title="Cancel" src="../../../../../web/images/blank.gif" border="0" /></td>
                          <td class="Button_text" width="150px">Do not use Credit</td>
                          <td class="Button_right"></td>
			</tr>
                      </table>
                    </button>
                  </div>
		</td>
		<td></td>
		<td></td>
              </tr>
            </table>
          </div>
	</td>
      </tr>
    </table>

</body>
</html>
